﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BestCode.Creds.Business;
using BestCode.Creds.Entities;
using BestCode.Wpf.ViewModel.Data;

namespace BestCode.Creds.UI.ViewModel
{
    public class VmEntity : DataModelBase<EntityInfo>
    {
        public VmTemplate VmTemplateAnverse { get; set; }
        public VmTemplate VmTemplateReverse { get; set; }

        public VmEntity()
        {
            VmTemplateAnverse = new VmTemplate();
            VmTemplateReverse = new VmTemplate();

            EntityBusiness negocios = new EntityBusiness();
            SetDataService(negocios);
            GetAll();

            SelectedItemChanged += VmEntity_SelectedItemChanged;
        }

        void VmEntity_SelectedItemChanged(object sender, EventArgs e)
        {
            //VmTemplateAnverse.SelectedItem = SelectedItem.AnverseFace;
        }
    }
}
